/**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.yixiang.co
* 注意：
* 本软件为www.yixiang.co开发研制，未经购买不得使用
* 购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
* 一经发现盗用、分享等行为，将追究法律责任，后果自负
*/
package co.yixiang.modules.auction.service.mapper;

import co.yixiang.common.mapper.CoreMapper;
import co.yixiang.modules.auction.domain.YxAuctionTakeDelivery;
import co.yixiang.modules.auction.service.dto.YxAuctionTakeDeliveryDto;
import co.yixiang.modules.auction.service.dto.YxAuctionTakeDeliveryQueryCriteria;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author hupeng
* @date 2021-05-19
*/
@Repository
public interface YxAuctionTakeDeliveryMapper extends CoreMapper<YxAuctionTakeDelivery> {

    @Select(" SELECT yatd.* , yao.user_address as address  , ya.real_name as realName , yu.phone " +
            " from yx_auction_take_delivery yatd , yx_auction_order yao , yx_authentication ya , yx_user yu " +
            " where yatd.oid = yao.id and yao.user_id = ya.uid and yao.user_id = yu.uid  ")
    List<YxAuctionTakeDeliveryDto> selectTakeList(YxAuctionTakeDeliveryQueryCriteria criteria);
}
